package org;

import java.util.Random;

public class RandomDemo {
    public static void main(String[] args) {
        Random rand = new Random();
        //0 - 9
        System.out.println(rand.nextInt(10));
        //a - b随机整数  rand.nextInt(b-a+1) + a
        System.out.println(rand.nextInt(15-10+1) + 10);




    }
}
